<template>
  <view class="stats-container">
    <view class="stat-item">
      <view class="amount">
        <text class="number">1234.56</text>
        <text class="unit">元</text>
      </view>
      <text class="label">总资产</text>
    </view>
    
    <view class="stat-item">
      <view class="amount">
        <text class="number">1234.56</text>
        <text class="unit">元</text>
      </view>
      <text class="label">当月销售额</text>
    </view>
    
    <view class="stat-item">
      <view class="amount">
        <text class="number">6</text>
        <text class="unit">人</text>
      </view>
      <text class="label">团队人数</text>
    </view>
  </view>
</template>

<style lang="scss">
.stats-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20rpx 30rpx;
  background: #000;
  border-radius: 12rpx;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;

  // Adding a pseudo-element for dividers
  &:not(:last-child)::after {
    content: '';
    position: absolute;
    width: 0rpx;
    height: 36rpx; // Adjust height as needed
    background: rgba(255, 255, 255, 0.1);
    top: 30rpx; // Adjust position as needed
    right: -10rpx; // Adjust spacing between items
    border: 2rpx solid transparent;
    border-image: linear-gradient(
      35deg,
      rgba(224, 184, 121, 0),
      rgba(249, 221, 179, 1),
      rgba(234, 189, 156, 0)
    ) 2 2;
  }
}

.amount {
  display: flex;
  align-items: baseline;
  margin-bottom: 8rpx;

  .number {
    font-size: 36rpx;
    color: #FFD700;
    font-weight: 500;
  }

  .unit {
    font-size: 24rpx;
    color: #FFD700;
    margin-left: 4rpx;
  }
}

.label {
  font-size: 24rpx;
  color: #999;
}
</style>